updating oE call_func
call_func
<built-in> function call_func(integer id, sequence args={})
calls the user-defined Euphoria function by routine id.
Parameters:
- id : an integer, the routine id of the function to call
- args : a sequence, the parameters to pass to the function.
Returns:
The value, the called function returns.
Errors:
If id is negative or otherwise unknown, an error occurs.
If the length of args is not the number of parameters the function takes, an error occurs.
Comments:
id must be a valid routine id returned by routine_id.
args must be a sequence of argument values of length n, where n is the number of arguments required by the called function. Defaulted parameters currently cannot be synthesized while making a indirect call.
If the function with id id does not take any arguments then args should be {}.
Example 1:
Take a look at the sample program called demo/csort.ex
See Also:
Not Categorized, Please Help
|